home *** CD-ROM | disk | FTP | other *** search
-
- Form file for MANDELMANIA 4.0
- -------------------------------
-
-
- This is the form file for Mandelmania's output ARexx-files. Mandelmania can create
- ARexx-files automatically. This is useful especially when calculating animations.
-
- There are different sections in this file:
-
- 1. @HEAD: This section is written at the beginning of the ARexx-file
- 2. @APPEND:
- 3. @INTERPOLATE: These sections will be added to the ARexx-file, if the user
- selected Append or Interpolate from the ARexx menu
- 4. @TAIL: This section is written at the end of the ARexx-file
-
- These keywords must be at the beginning of the line to be recognized, and they
- must appear in this file in the described order. At the end of the file
- must be a @END.
-
-
- There are several variables that can be used:
-
- Fractal coordinates: @{left}, @{right}, @{top}, @{bottom}
- Julia constants: @{xc}, @{yc}
- Number of interations: @{iterations}
- Fractal type: @{type}
- Interpolation steps: @{steps}
-
-
- @HEAD
- /*--------------------------------------------------------------------------*/
- /* Mandelmania - ARexx - Script - File */
- /*--------------------------------------------------------------------------*/
-
- address 'rexx_mandelmania'
- options results
-
- signal on ERROR
- signal on BREAK_C
- signal on BREAK_D
-
- 'getanimfilename'
- animname = result
-
- if result = 'RESULT' then do
- exit 0
- end
-
- 'openanim' animname'.anim'
-
- pic = 0
-
- /*--------------------------------------------------------------------------*/
-
- @APPEND
-
- left1 = '@{left}'
- right1 = '@{right}'
- bottom1 = '@{bottom}'
- top1 = '@{top}'
- xc1 = '@{xc}'
- yc1 = '@{yc}'
- iter1 = @{iterations}
- type = @{type}
-
- 'calculate' left1 right1 bottom1 top1 xc1 yc1 iter1 type
- 'saveanim'
- if pic <= 1 then do
- 'savefractal' animname'.'pic
- end
-
- pic = pic+1
-
- /*--------------------------------------------------------------------------*/
-
- @INTERPOLATE
-
- left2 = '@{left}'
- right2 = '@{right}'
- bottom2 = '@{bottom}'
- top2 = '@{top}'
- xc2 = '@{xc}'
- yc2 = '@{yc}'
- iter2 = @{iterations}
-
- steps = @{steps}
-
- do i=pic to pic+steps-1
- say 'interpolate' i-pic steps
- 'interpolate' i-pic+1 steps left1 right1 bottom1 top1 xc1 yc1 iter1 left2 right2 bottom2 top2 xc2 yc2 iter2 type
- 'saveanim'
- if i <= 1 then do
- 'savefractal' animname'.'i
- end
- end
-
- left1 = left2;
- right1 = right2;
- bottom1 = bottom2;
- top1 = top2;
- xc1 = xc2;
- yc1 = yc2;
- iter1 = iter2;
- pic = pic+steps
-
- /*--------------------------------------------------------------------------*/
-
- @TAIL
-
- BREAK_C:
- BREAK_D:
-
- 'openfractal' animname'.0' /* For looped animations */
- 'saveanim'
- 'openfractal' animname'.1'
- 'saveanim'
-
- 'closeanim'
-
- address command 'delete' animname'.0 QUIET'
- address command 'delete' animname'.1 QUIET'
- exit 0
-
- ERROR:
- if (RC ~= 0) then do
- say ' 'SIGL '*-*' SOURCELINE(SIGL)
- say ' Error' RC
- end
-
- 'closeanim'
- address command 'delete' animname'.0 QUIET'
- address command 'delete' animname'.1 QUIET'
- exit 10
-
- @END
-